home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c++,comp.lang.c,comp.arch,comp.arch.embedded
- Subject: Re: C++ -> C compiler
- Date: 5 Mar 1996 09:31:30 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4hhtpiINN4h9@keats.ugrad.cs.ubc.ca>
- References: <313C8FE9.1EE1@iastate.edu>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <313C8FE9.1EE1@iastate.edu>, Steve Lee <sjlee@iastate.edu> wrote:
- >Hi,
- >
- >I've heard about a C++ -> C compiler (Cfront?). Does anyone have any
- >information on this? I would like to be able to code in C++, compile it
- >with one of these supposed compilers to C, and then use one of the
- >variety of C compilers specifically for the 68HC11 microcontroller.
- >
- >Thanks in advance.
-
- This has been done. Some 'CC' compilers work by translating C++ to C.
-
- hp-ux$ man CC
-
- CC(1) CC(1)
-
-
-
-
- NAME
- CC - C++ translator/compiler
-
- SYNOPSIS
- CC [ options ] files
-
- DESCRIPTION
- CC (capital CC) is the HP-UX C++ translator/compiler. In translator
- mode CC translates C++ source code to C source code. In compiler mode
- CC compiles C++ source code directly to object code.
-
- The command uses cpp(1) for preprocessing, cfront for syntax and type
- checking, as well as for code generation in compiler mode, and cc(1)
- for code generation in translator mode.
- --
-
-